// pages/category/category.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    list: [
      { bg: "/images/c-bg-1.png", name: "热销楼盘", icon: "/images/c-icon-1.png"},
      { bg: "/images/c-bg-2.png", name: "名车", icon: "/images/c-icon-2.png" },
      { bg: "/images/c-bg-3.png", name: "装修公司", icon: "/images/c-icon-3.png" },
      { bg: "/images/c-bg-4.png", name: "驾校集结号", icon: "/images/c-icon-4.png" },
      { bg: "/images/c-bg-5.png", name: "逛逛", icon: "/images/c-icon-5.png" },
      { bg: "/images/c-bg-6.png", name: "数码", icon: "/images/c-icon-6.png" },
      { bg: "/images/c-bg-7.png", name: "美美", icon: "/images/c-icon-7.png" },
      { bg: "/images/c-bg-8.png", name: "超市", icon: "/images/c-icon-8.png" },
      { bg: "/images/c-bg-9.png", name: "快递", icon: "/images/c-icon-9.png" },
      { bg: "/images/c-bg-10.png", name: "酒店", icon: "/images/c-icon-10.png" },
      { bg: "/images/c-bg-11.png", name: "休闲", icon: "/images/c-icon-11.png" },
      { bg: "/images/c-bg-12.png", name: "特产", icon: "/images/c-icon-12.png" },
      { bg: "/images/c-bg-13.png", name: "品质服务", icon: "/images/c-icon-13.png" },
      { bg: "/images/c-bg-14.png", name: "旅游", icon: "/images/c-icon-14.png" },
      { bg: "/images/c-bg-15.png", name: "学校", icon: "/images/c-icon-15.png" }
    ]
  },
  itemClicked(e) {
    wx.navigateTo({
      url: 'subcategory'
    })
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
  
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
  
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
  
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {
  
  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {
  
  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {
  
  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
  
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
  
  }
})